<?php
namespace Transform;

class LiveTransform extends Transform
{
    public function index($arguments)
    {
        return [
            'allows' => ['id', 'title', 'stars_count', 'is_like', 'is_live', 'likes_count', 'start_time', 'end_time',
                'intro', 'like_num', 'viewer_num', 'type', 'anchor', 'tag', 'notice_time','chatroom_id', 'stream_name', 'status', 'm3u8_record_uri', 'mp4_record_uri','online','notice_time'],
            'anchor' => ['trans' => ['name' => 'User', 'method' => 'pub']],
            'tag' => ['trans' => ['name' => 'LiveTag', 'method' => 'pub']],
        ];
    }


    public function detail()
    {
        return [
            'allows' => ['id', 'title', 'stars_count', 'is_like', 'is_live', 'likes_count', 'start_time', 'end_time', 'share_url',
                'intro', 'like_num', 'viewer_num', 'type', 'anchor', 'tag','notice_time', 'pull_url', 'pull_multi_urls', 'push_url', 'chatroom_id', 'stream_name', 'status', 'm3u8_record_uri', 'mp4_record_uri', 'is_admin','notice_time'],
            'anchor' => ['trans' => ['name' => 'User', 'method' => 'pub']],
            'tag' => ['trans' => ['name' => 'LiveTag', 'method' => 'pub']],
        ];
    }

    public function replay()
    {
        return [
            'allows' => ['id', 'title', 'stars_count', 'is_like', 'is_live', 'likes_count', 'start_time', 'end_time',
                'intro', 'like_num', 'viewer_num', 'type', 'anchor', 'tag', 'status', 'm3u8_record_uri', 'mp4_record_uri', 'is_admin'],
            'anchor' => ['trans' => ['name' => 'User', 'method' => 'pub']],
            'tag' => ['trans' => ['name' => 'LiveTag', 'method' => 'pub']],
        ];
    }




    public function master($arguments)
    {
        return [
            'allows' => ['id', 'title', 'stars_count', 'is_like', 'is_live', 'likes_count', 'start_time', 'end_time', 'share_url',
                'intro', 'like_num', 'viewer_num', 'type', 'tag', 'pull_url', 'pull_multi_urls', 'push_url', 'chatroom_id', 'stream_name', 'status', 'm3u8_record_uri', 'mp4_record_uri'],
            'tag' => ['trans' => ['name' => 'LiveTag', 'method' => 'pub']],
        ];
    }
}
